home *** CD-ROM | disk | FTP | other *** search
/ Programmers Heaven 2 / Programmers Heaven 2.iso / files / graphics / library / wgt51_r2.zip / WGT5 / H / WGTJOY.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-03  |  540 b   |  29 lines

  1. #ifndef _WGTJOY_
  2. #define _WGTJOY_
  3.  
  4. /* Include file for the WGT Joystick Routines
  5.    Copyright 1995 Egerter Software */
  6.  
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10.  
  11. typedef struct {
  12.     short x, y;
  13.     short cenx, ceny;
  14.     short xrange, yrange;
  15.     short port, buttons;
  16.     short scale;
  17.     } joystick;
  18.  
  19. short     wcalibratejoystick (joystick *joy);
  20. short     wcheckjoystick (void);
  21. void      winitjoystick (joystick *joy, short joynum);
  22. short     wreadjoystick (joystick *joy);
  23.  
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27.  
  28. #endif
  29.